Skip to main content

Overview

AnyShake Observer relies on the JSON format configuration file, here we introduce the JSON-based configuration.

About JSON Format

JSON, or JavaScript Object Notation, in short is objects in Javascript. One JSON file contains one and only one JSON object, beginning with { and ending with }.

JSON Data Types

Here is a brief introduction of JSON data types. They will be referenced in the rest of docs.

boolean: true | false

Boolean value, has to be either true or false, without quotation mark.

number

Usually non-negative integers, without quotation mark.

string

Sequence of characters, surrounded by quotation mark.

array: []

Array of elements. The type of its elements is usually the same, e.g., [string] is an array of strings.

object: {}

Object. It comes with a list of key value pairs.

A key value pair usually ends with a comma ,, but must not ends with a comma if it is the last element of the object.

Configuration Fields

Here is a list of configuration fields with their types.

The configuration fields are taken from v3.1.1.

FieldType
station_settingsobject
location_settingsobject
explorer_settingsobject
sensor_settingsobject
stream_settingsobject
ntpclient_settingsobject
database_settingsobject
server_settingsobject
logger_settingsobject
services_settingsobject